package com.huashi.dealer.modular.business.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Store端用户地址详情VO
 *
 * @author 谭陈强
 * @since 2025-08-18
 */
@Data
@Schema(description = "Store端用户地址详情VO")
public class StoreUserAddressDetailVo {

    /**
     * 地址ID
     */
    @Schema(description = "地址ID")
    private Integer addressId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;

    /**
     * 收货人姓名
     */
    @Schema(description = "收货人姓名")
    private String name;

    /**
     * 收货人手机号
     */
    @Schema(description = "收货人手机号")
    private String phone;

    /**
     * 省份ID
     */
    @Schema(description = "省份ID")
    private Integer provinceId;

    /**
     * 城市ID
     */
    @Schema(description = "城市ID")
    private Integer cityId;

    /**
     * 地区ID
     */
    @Schema(description = "地区ID")
    private Integer regionId;

    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String detail;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 地区信息
     */
    @Schema(description = "地区信息")
    private StoreUserAddressListVo.RegionVo region;
}
